<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    哈喽

    <table>
        <tr>
            <td>
                <label>请输入姓名</label><input id="ss1" type="text" placeholder="请输入中文"> </input>

            </td>
        </tr>
        <tr>
            <td>
                <label>请输入密码</label>
                <input type="text" placeholder="请输入8位数的密码"> </input>

            </td>
        </tr>
        <tr>
            <td>
                <label>请选择你的爱好</label>
                <input type="radio" name="a" id="a1">篮球 </input>
                <input type="radio" name="a" id="a2"> rape</input>
                <input type="radio" name="a" id="a3"> 唱</input>
                <input type="radio" name="a" id="a4"> 跳</input>
            </td>
        </tr>
        <tr>
            <td>
                <label>您确定吗</label><input type="checkbox" placeholder="请输入中文"> </input>

            </td>
        </tr>

        <tr>
            <td>
                <label>请选择省份</label>
                <select name="省份" id="sb">
                <option value="hn">河南</option>
                <option value="hn">江西</option>
                <option value="hn">安徽</option>
                <option value="hn">江苏</option>
                <option value="hn">福建</option>
            </select>
            </td>
        </tr>
        </tr>
        <tr>
            <td>
                <label></label><input type="button" onclick="fc()" value="提交"> </input>

            </td>
        </tr>

    </table>

    <script src="js/a19.js"></script>
</body>

</html>



'去吧皮卡丘'

function fc() {
    var b = document.getElementById('ss1')
    console.log(b.value)


    var bb= document.getElementById('a1')
    console.log(bb.checked);

    var b2 = document.getElementById('a2')
   b2.checked;
    var b3 = document.getElementById('a3')
 b3.checked;
    var b4 = document.getElementById('a4')
b4.checked;
    
}


////插入排序
// let list = document.getElementsByTagName('li')
// console.log(list);

// let arr =[];
// for(let i = 0 ;i<list.length ; i++){
//     arr.push(list[i].innerText)
// }
// console.log(arr);


// console.log(arr.sort());

// let list_text = document.getElementById('list-text')

// list_text.innerHTML= ""

// arr.forEach(item=>{
//     let node =document.createElement('li');
//     node.className = 'lang';
//     node.innerText = item;
//     list_text.appendChild(node)
// });

// ;(function () {
//     var
//         arr, i,
//         t = document.getElementById('test-list');
//     if (t && t.children && t.children.length === 5) {
//         arr = [];
//         for (i=0; i<t.children.length; i++) {
//             arr.push(t.children[i].innerText);
//         }
//         if (arr.toString() === ['Apple','Hello','Inner','While','Zone'].toString()) {
//             console.log('测试通过!');
//         }
//         else {
//             console.log('测试失败: ' + arr.toString());
//         }
//     }
//     else {
//         console.log('测试失败!');
//     }
// })();